#include "AdminRegister.hpp"

managerSystem::admin::admin(const std::string &admin_name) {
  // 使用绝对路径加载管理员JSON文件
  std::string filePath =
      "/home/ccy/code_workspace/cpp_finall/resource/admin/" + admin_name + ".json";
  read_from_file(filePath, admin_json_);
  admin_id_ = admin_json_["admin_id"];
  admin_name_ = admin_json_["admin_name"];
  
}